﻿using System.Collections;
using System.Collections.Generic;
using UBlockly.Scriptable;
using UnityEngine;
using UnityEngine.EventSystems;

namespace UBlockly.Compotent
{
    [RequireComponent(typeof(UDropdown))]
    internal class EnumRGetterCompotent : IParamGetterCompotent
    {
        UDropdown dropdown;

        private void Awake()
        {
            dropdown = GetComponent<UDropdown>();
        }

        public override System.Type ValueType => typeof(EnumR); 
        protected override object InputGetter()
        {
            return dropdown.value;
        }

        protected override void OnParamSelected(BaseEventData eventData)
        {
            //默认的输入
            return;
        }

        protected override void OnParamDeselected(BaseEventData eventData)
        {
            return;
        }
    }
}
